package com.tos.uc.ecommons;

import org.springframework.stereotype.Component;

import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

/**
 * Created by yanfei on 2017/6/28.
 */
@Component
public  class IExecutors {
    public   static  void executeThread(Runnable runnable){
        Executors.newFixedThreadPool(2).execute(runnable);
    }
}
